Repository navigation
feat(studio): the Studio menu draws no datasource row, and ADR-0084 writes it as a no-row entry - #37945
feat(studio): the Studio menu draws no datasource row, and ADR-0084 writes it as a no-row entry#37945objectstack-fleet[bot] wants to merge 2 commits into
Conversation
The 平台 Platform group of App Studio's menu no longer lists Datasources, in any scope; a connection is managed in Setup → Integrations alone (ADR-0084, amended 2026-11-26, decision 12). The type stays registered `system` and the type directory still lists it. ADR-0084's type → group table writes the `datasource` row as a no-row entry like `field`'s, with a dated note. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibwtMGwDL8KdXqqaLLT
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L9qibwtMGwDL8KdXqqaLLT
|
repo:objectstack#3 · os-tesla · session_01L9qibwsYQqi3TBx2SFE978 Contract reviewServed-tier: PR #37945, card #37920, net diff against Check-runs on this head, read at review time. Completed and green: Auto Label, Dogfood Regression Gate, Plan Test Core shards, Build UI Deps, Check Documentation Links, Type Check · workspace, Check PR Size, PR-body guards, Governed Surface Queue Guard, filter. Skipped by the workflow's own planning: UI Published Artifacts, Build Core, Dogfood Verify CLI, Build Docs, the matrix Dogfood shard, Temporal Conformance, the two opt-in harnesses, Queue verdict, Borrowed queue verdict, Schedule gate. No check has failed. STILL PENDING, not waited on: Test UI 1/16 to 9/16 (the shards that run the two test files this record leans on), Test Core 1/10, Type Check UI, Lint UI, Build & E2E UI, Live E2E UI, Check Changeset (not yet completed at the first read), Type Check · source gates, Type Check · consumer gates, Lint · ESLint, Lint · scoped · tooling self-tests, Lint · scoped · slot lookup & corpus, Lint · scoped · query-options erasure, Lint · CI, release & engine gates, Lint · PM dispatch-gates, Lint · docs & code guards, Lint · repo & tooling gates. This PASS is a design verdict on the tree; it does not stand in for those conclusions, and the queue reads them itself. ① Derived judgments
② Semver level
Clause-②: no — agreed; no accept-set widens or narrows. The changeset's last sentence ("its tile and every ③ Boundary flags
④ Design judgmentNo must-fix, no should-fix. docs/adr/0084-application-builder-information-architecture.md (hits)
studioMenuPlacement.ts (implementing)
studioMenuModel.ts (implementing)
studioMenuPlacement.test.ts (implementing; the gate that ties the table to the list)
studioPaletteModel.ts (implementing; judged in scope, since its docblock describes the menu's behaviour)
StudioMenu.tsx (implementing; judged in scope, as the consumer that draws the entries)
Remainder of the diff (the changeset, Nits N1 to N3 have no effect on correctness or the contract and are left as accepted deviations; none needs a change on this head. Implemented-by: VERDICT: PASS |
|
repo:objectstack#3 · os-tesla · session_01L9qibwsYQqi3TBx2SFE978 L1-b, the seat's L1 thread for zone o3-studio · 2026-11-27T12:52Z 席位核对 — L1 ACCEPT @
|
|
repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU Recorded 2026-11-27T12:53Z.
席位意见:可以合。只删放置表一行不够(没放置的类型会落进「高级」折叠里画出来),所以新增 席位核对 — ACCEPT · repo:objectstack#3 · head
|
|
repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU 维护者速读
|
Requested by Tesla · project thread
Fixes #37920
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
datasourcerow, in any scope.studioMenuPlacement.tsdrops the row and addsSTUDIO_MENU_NO_ROW_TYPES = {'datasource'};buildStudioMenuskips a type in that set before it places anything, on a package, on~organd on~all. Removing the placement row alone would not do it: the menu's own rule draws a type with no row in 高级 at the end of its group ("never invisible", objectstack#37201), so the no-row set is the exception that rule now names.datasourcebranch oftypeEntryPath(it routed the row to Setup's Datasources page) with itsSETUP_DATASOURCES_PATHimport, and the row'sDatabaseicon inStudioMenu.tsx.buildStudioMenu), so itstype:datasourceentry goes too;StudioPaletteGroups.surfaceScope-36900.test.tsxis re-pointed.SETUP_DATASOURCES_PATH(the directory tile and the area'sdatasource/*redirect read it);STUDIO_PALETTE_ITEMLESS_TYPES(the palette's item reads still run over the directory-scoped types, which includedatasource, so it still keeps the palette from reading datasource items; only its docblock changes); the type'ssystemregistration;HIDDEN_DIRECTORY_TYPES(untouched).datasourcerow becomes a no-row entry likefield's (| — |for Order and Tier, last in its group),external_catalogmoves from 7 to 6, and one dated note under the table names this card. 平台 Platform still counts 7 table rows (six with an order, anddatasource), so no count changes. Drafted by an isolated contract-review-tier subagent at effort xhigh. The stale whole-table counts and theknowledge_sourcerow are ADR-0084: the type-to-group note, fold sentence and item 6 heading catch up with the knowledge_source row #37740's, not this PR's.Card question (a): does 全部类型 still list
datasource?Yes. Read on the booted showcase (this branch):
/studio/com.example.showcase/metadatadraws a Datasource tile linking to/apps/setup/metadata/datasource(DirectoryPage.tsx,href={host && e.type === 'datasource' ? SETUP_DATASOURCES_PATH : undefined}), becausescopeDirectoryEntrieshides onlyfield,packageandform. This matches ADR-0084: the amendment's sentence is "The menu draws nodatasourcerow", about the menu alone; the directory keeps one entry for the type in 平台 Platform (one type, one group), and the tile leads to Setup, so a connection is still managed in Setup alone and nowhere in Studio. No mismatch to report; the directory is unchanged, as the claim requires.Tests
studioMenuModel.test.ts: a new block "the menu draws no datasource row" — on a package,~organd~all, withsetupDirectorytrue and false, a served, counted, settleddatasourcedraws no entry and no entry leads to Setup's Datasources page, whileapiandexternal_catalogbeside it do; a package whose onlysystemtype isdatasourcedraws 平台 Platform with diagnostics alone, in the fold; on~org/~allit leaves no 平台 Platform group. The package-scope keys test is rewritten on purpose (system: ['diagnostics']), marked in a comment.studioMenuPlacement.test.ts: the registry pin reads "every listable type has one row, unless the menu draws no row for it"; a new pin saysdatasourceis registeredsystem, the directory lists it, and it has no row; the 高级 order literal drops it; a new 平台 Platform group pin; the ADR pin passes against the table as this PR leaves it.ui/, under the verify lock:npx vitest run packages/app-shell/src/views/studio-design/—Test Files 280 passed (280),Tests 2322 passed (2322),VERDICT command-exit 0.studioMenuPlacement.test.tsalone on the final ADR text: 19 of 19,VERDICT command-exit 0.Acceptance notes
datasource's andform's still wait for their changes", and the 2026-11-25 silent item 1's order "translation·api·datasource·external_catalog". Both now point at, or are superseded by, the new note under the table. carrier: none — noted, not filed.Verification
Read first, by risk:
ui/packages/app-shell/src/views/studio-design/studioMenuModel.ts,buildStudioMenu: the onecontinueonSTUDIO_MENU_NO_ROW_TYPES.docs/adr/0084-application-builder-information-architecture.md, the 平台 Platform rows and the new note.studioMenuPlacement.test.ts:LISTABLE_TYPESnow excludes the no-row set.Two-minute check:
cd ui && npx vitest run packages/app-shell/src/views/studio-design/studioMenuPlacement.test.ts packages/app-shell/src/views/studio-design/studioMenuModel.test.ts— both pass.Browser (showcase booted from this branch,
ui/console over HMR, seeded admin): the showcase holds two datasources (default,showcase_external;GET /api/v1/meta/datasource200). On/studio/com.example.showcase/metadata/objectwith the 高级 fold open, 平台 Platform reads Documentation 8 · Documentation Book 1 · Email Template 1 · API Endpoint 3 · Diagnostics, and no Datasources row; no other group lists it either. The screenshot is kept with the project thread (card-37920/studio-menu-platform.png).Local gates
Derived with
node scripts/pm/dispatch-gates.mjs --commandsat a45fff4; reconciliation: "48 derived famil(ies) accounted for — 48 run, 0 NOT-MEASURED (a DERIVED zero)".node scripts/check-adr-0087-registration.mjs --base origin/main:: exit 0node scripts/check-adr-0087-registration.mjs --self-test:: exit 0node scripts/check-adr-links.mjs:: exit 0node scripts/check-adr-links.mjs --self-test:: exit 0node scripts/check-changeset-no-major.mjs --base origin/main:: exit 0node scripts/check-closing-keyword-parity.mjs:: exit 0node scripts/check-closing-keyword-parity.mjs --self-test:: exit 0node scripts/check-comment-mask-corpus.mjs:: exit 0node scripts/check-empty-changeset.mjs --base origin/main:: exit 0node scripts/check-empty-changeset.mjs --self-test:: exit 0node scripts/check-sdui-manifest.mjs:: exit 0node scripts/check-sdui-manifest.mjs --self-test:: exit 0node scripts/ci/plan-test-core-shards.mjs --self-test:: exit 0node scripts/ci/snapshot-next.mjs --self-test:: exit 0node scripts/pm/check-governed-queue-guard.mjs --self-test:: exit 0node scripts/pm/release-rehearsal-clone.mjs --self-test:: exit 0node scripts/release-pending-publish.mjs --self-test:: exit 0pnpm --filter @objectstack/lint run check:doc-formula-expressions:: exit 0pnpm --filter @objectstack/spec run check:duration-unit-keys:: exit 0pnpm check:adr-anchors:: exit 0pnpm check:adr-index:: exit 0pnpm check:adr-symbol-anchors:: exit 0pnpm check:changeset-gate-self-tests:: exit 0pnpm check:ci-filter-parity:: exit 0pnpm check:closed-ceremony-text:: exit 0pnpm check:cross-package-test-inputs:: exit 0pnpm check:dispatcher-error-vocabulary:: exit 0pnpm check:doc-authoring:: exit 0pnpm check:driver-memory-census:: exit 0pnpm check:engine-double-contract:: exit 0pnpm check:gitlink-declared:: exit 0pnpm check:nul-bytes:: exit 0pnpm check:pm-governed-merges:: exit 0pnpm check:pm-prior-rulings:: exit 0pnpm check:published-files:: exit 0pnpm check:query-options-erasure:: exit 0pnpm check:refd-timer-probe:: exit 0pnpm check:registry-log-declared:: exit 0pnpm check:rest-log-spy-declared:: exit 0pnpm check:skill-identifier-liveness:: exit 0pnpm check:test-source-alias:: exit 0pnpm check:tier-file-adoption:: exit 0pnpm check:type-check-coverage:: exit 0pnpm check:type-check-debt:: exit 0pnpm check:undeclared-dep-imports:: exit 0pnpm check:watch-hint-literal:: exit 0pnpm check:where-matcher:: exit 0pnpm --dir ui exec vitest run scripts/:: exit 0node scripts/pm/overlap-check.mjsat a45fff4:VERDICT clean exit 0(origin/main f926dfa merges cleanly; #37927, which shares the ADR file, merges cleanly).🤖 Generated with Claude Code
https://claude.ai/code/session_01L9qibwtMGwDL8KdXqqaLLT
Generated by Claude Code